package com.example.memurbac_service.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@ApiModel("菜单")
public class Memu
{

    /**  id  */
    @ApiModelProperty("菜单id")
    private int id;

    /**  菜单名字  */
    @ApiModelProperty("名字")
    private String memu_name;

    /**  描述  */
    @ApiModelProperty("描述")
    private String memu_desc;

    /**  状态  */
    @ApiModelProperty("状态")
    private int memu_status;

    /**  创建时间  */
    @ApiModelProperty("创建时间")
    private Date memu_createtime;

    /**  修改时间  */
    @ApiModelProperty("修改时间")
    private Date memu_modiftime;

    /**  样式  */
    @ApiModelProperty("样式")
    private String memu_style;

    /**  图片  */
    @ApiModelProperty("图片")
    private String memu_picture;

    /**  up图片  */
    @ApiModelProperty("图片")
    private MultipartFile memupicture;

    /**  URL  */
    @ApiModelProperty("URL")
    private String memu_url;

    /**  菜单类型id  */
    @ApiModelProperty("菜单类型id")
    private int memu_typeid;

    /**  菜单类型  */
    @ApiModelProperty("菜单类型")
    private String memu_typename;

    /**  跳转方式  */
    @ApiModelProperty("跳转方式：0 本页面，1：新页面")
    private int memu_skiptype;

    /**  菜单等级  */
    @ApiModelProperty("菜单等级")
    private int memu_grade;

    /**  父菜单id  */
    @ApiModelProperty("父菜单id")
    private int memu_parentid;

    /**  登录时名字  */
    @ApiModelProperty("登录时名字")
    private String memu_logname;

    /**  登录时URL  */
    @ApiModelProperty("登录时URL")
    private String memu_logurl;

    /**  登录时图片  */
    @ApiModelProperty("登录时图片")
    private String memu_logpicture;

    /**  登录时up图片  */
    @ApiModelProperty("登录时图片")
    private MultipartFile memulogpicture;

    /**
     * 子菜单
     */
    @ApiModelProperty("子菜单")
    private List<Memu> childMemu ;

    public List<Memu> getChildMemu() {
        return childMemu;
    }

    public void setChildMemu(List<Memu> childMemu) {
        this.childMemu = childMemu;
    }
    public void addChildMemu(Memu childMemu){
        this.childMemu.add(childMemu);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMemu_name() {
        return memu_name;
    }

    public void setMemu_name(String memu_name) {
        this.memu_name = memu_name;
    }

    public String getMemu_desc() {
        return memu_desc;
    }

    public void setMemu_desc(String memu_desc) {
        this.memu_desc = memu_desc;
    }

    public int getMemu_status() {
        return memu_status;
    }

    public void setMemu_status(int memu_status) {
        this.memu_status = memu_status;
    }

    public Date getMemu_createtime() {
        return memu_createtime;
    }

    public void setMemu_createtime(Date memu_createtime) {
        this.memu_createtime = memu_createtime;
    }

    public Date getMemu_modiftime() {
        return memu_modiftime;
    }

    public void setMemu_modiftime(Date memu_modiftime) {
        this.memu_modiftime = memu_modiftime;
    }

    public String getMemu_style() {
        return memu_style;
    }

    public void setMemu_style(String memu_style) {
        this.memu_style = memu_style;
    }

    public String getMemu_picture() {
        return memu_picture;
    }

    public void setMemu_picture(String memu_picture) {
        this.memu_picture = memu_picture;
    }

    public String getMemu_url() {
        return memu_url;
    }

    public void setMemu_url(String memu_url) {
        this.memu_url = memu_url;
    }

    public int getMemu_typeid() {
        return memu_typeid;
    }

    public void setMemu_typeid(int memu_typeid) {
        this.memu_typeid = memu_typeid;
    }

    public String getMemu_typename() {
        return memu_typename;
    }

    public void setMemu_typename(String memu_typename) {
        this.memu_typename = memu_typename;
    }

    public int getMemu_skiptype() {
        return memu_skiptype;
    }

    public void setMemu_skiptype(int memu_skiptype) {
        this.memu_skiptype = memu_skiptype;
    }

    public int getMemu_grade() {
        return memu_grade;
    }

    public void setMemu_grade(int memu_grade) {
        this.memu_grade = memu_grade;
    }

    public int getMemu_parentid() {
        return memu_parentid;
    }

    public void setMemu_parentid(int memu_parentid) {
        this.memu_parentid = memu_parentid;
    }

    public String getMemu_logname() {
        return memu_logname;
    }

    public void setMemu_logname(String memu_logname) {
        this.memu_logname = memu_logname;
    }

    public String getMemu_logurl() {
        return memu_logurl;
    }

    public void setMemu_logurl(String memu_logurl) {
        this.memu_logurl = memu_logurl;
    }

    public String getMemu_logpicture() {
        return memu_logpicture;
    }

    public void setMemu_logpicture(String memu_logpicture) {
        this.memu_logpicture = memu_logpicture;
    }

    public MultipartFile getMemupicture() {
        return memupicture;
    }

    public void setMemupicture(MultipartFile memupicture) {
        this.memupicture = memupicture;
    }

    public MultipartFile getMemulogpicture() {
        return memulogpicture;
    }

    public void setMemulogpicture(MultipartFile memulogpicture) {
        this.memulogpicture = memulogpicture;
    }
}
